<template>
  <div class="child">
    <div>{{ props.name }}</div>
    <div>{{ age }}</div>
    <el-button @click="$emit('refresh', 100)">触发父组件</el-button>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  name: String,
  age: Number
})
</script>

<style></style>
